<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Docs For Class I18n</title>
	<link rel="stylesheet" type="text/css" href="../../media/style.css">
	<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
	<td class="header-top-left"><img src="../../media/logo.png" border="0" alt="phpDocumentor " /></td>
    <td class="header-top-right">Buan<br /><div class="header-top-right-subpackage">ViewHelper</div></td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td colspan="2" class="header-menu">
      
                        
                      		[ <a href="../../classtrees_Buan.html" class="menu">class tree: Buan</a> ]
		[ <a href="../../elementindex_Buan.html" class="menu">index: Buan</a> ]
            [ <a href="../../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="195" class="menu">
		<div class="package-title">Buan</div>
  <div class="package">
	<div id="todolist">
			<p><a href="../../todolist.html">Todo List</a></p>
	</div>
	</div>
      <b>Packages:</b><br />
  <div class="package">
              <a href="../../li_Buan.html">Buan</a><br />
      	</div>
      <br />
                        <b>Files:</b><br />
        <div class="package">
				<span style="padding-left: 1em;"><a href="../../Buan/_BuanAutoLoader.php.html">BuanAutoLoader.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanConfig.php.html">BuanConfig.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanController.php.html">BuanController.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanCore.php.html">BuanCore.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanDatabase.php.html">BuanDatabase.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanException.php.html">BuanException.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanExtension.php.html">BuanExtension.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanInflector.php.html">BuanInflector.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanModel.php.html">BuanModel.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanModelCollection.php.html">BuanModelCollection.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanModelCriteria.php.html">BuanModelCriteria.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanModelCriteriaGroup.php.html">BuanModelCriteriaGroup.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanModelManager.php.html">BuanModelManager.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanModelRelation.php.html">BuanModelRelation.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanModelTracker.php.html">BuanModelTracker.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanObject.php.html">BuanObject.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanPdoStatementWrapper.php.html">BuanPdoStatementWrapper.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanPdoWrapper.php.html">BuanPdoWrapper.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanSystemLog.php.html">BuanSystemLog.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanSystemLogEntry.php.html">BuanSystemLogEntry.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanUrlCommand.php.html">BuanUrlCommand.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/_BuanView.php.html">BuanView.php</a></span><br />
	  </div>
  <div class="package">
	<strong>ViewHelper</strong><br />			<span style="padding-left: 1em;"><a href="../../Buan/ViewHelper/_view-helper---BuanViewHelperHtml.php.html">BuanViewHelperHtml.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../../Buan/ViewHelper/_view-helper---BuanViewHelperI18n.php.html">BuanViewHelperI18n.php</a></span><br />
	  </div>
            <br />
                  <b>Classes:</b><br />
        <div class="package">
		    		<a href="../../Buan/AutoLoader.html">AutoLoader</a>    	 <br />
	    		<a href="../../Buan/Config.html">Config</a>    	 <br />
	    		<a href="../../Buan/Controller.html">Controller</a>    	 <br />
	    		<a href="../../Buan/Core.html">Core</a>    	 <br />
	    		<a href="../../Buan/Database.html">Database</a>    	 <br />
	    		<a href="../../Buan/Exception.html">Exception</a>    	 <br />
	    		<a href="../../Buan/Extension.html">Extension</a>    	 <br />
	    		<a href="../../Buan/Inflector.html">Inflector</a>    	 <br />
	    		<a href="../../Buan/Model.html">Model</a>    	 <br />
	    		<a href="../../Buan/ModelCollection.html">ModelCollection</a>    	 <br />
	    		<a href="../../Buan/ModelCriteria.html">ModelCriteria</a>    	 <br />
	    		<a href="../../Buan/ModelCriteriaGroup.html">ModelCriteriaGroup</a>    	 <br />
	    		<a href="../../Buan/ModelManager.html">ModelManager</a>    	 <br />
	    		<a href="../../Buan/ModelRelation.html">ModelRelation</a>    	 <br />
	    		<a href="../../Buan/ModelTracker.html">ModelTracker</a>    	 <br />
	    		<a href="../../Buan/Object.html">Object</a>    	 <br />
	    		<a href="../../Buan/PdoStatementWrapper.html">PdoStatementWrapper</a>    	 <br />
	    		<a href="../../Buan/PdoWrapper.html">PdoWrapper</a>    	 <br />
	    		<a href="../../Buan/SystemLog.html">SystemLog</a>    	 <br />
	    		<a href="../../Buan/SystemLogEntry.html">SystemLogEntry</a>    	 <br />
	    		<a href="../../Buan/UrlCommand.html">UrlCommand</a>    	 <br />
	    		<a href="../../Buan/View.html">View</a>    	 <br />
	  </div>
  <div class="package">
	ViewHelper<br />	    <span style="padding-left: 1em;">		<a href="../../Buan/ViewHelper/Html.html">Html</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../../Buan/ViewHelper/I18n.html">I18n</a>    </span>	 <br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: I18n</h1>
Source Location: /view-helper/BuanViewHelperI18n.php<br /><br />

<h2 class="class-name">Class I18n</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Class Overview</div>
	<div class="nav-bar">
					<span class="disabled">Class Overview</span>
						
											| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
														| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
														| <a href="#sec-const-summary">Constants Summary</a> | <a href="#sec-consts">Constants Detail</a>
						</div>
	<div class="info-box-body">
		<table width="100%" border="0">
		<tr><td valign="top" width="60%" class="class-overview">

        		<p align="center" class="short-description"><strong>Enables specified strings within a View's buffer to be translated to any other  language.
</strong></p>
<span class="description"><p>Example usage (from within your custom View class' constructor):  <ol><li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">i18n&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id">Buan</span>\<span class="src-id">ViewHelper</span>\<span class="src-id"><a href="../../Buan/ViewHelper/I18n.html">I18n</a></span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></p></span>
		<p class="notes">
			Located in <a class="field" href="_view-helper---BuanViewHelperI18n.php.html">/view-helper/BuanViewHelperI18n.php</a> [<span class="field">line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a15">15</a></span>]
		</p>

		
		<pre></pre>

		
		
		
		</td>

				<td valign="top" width="20%" class="class-overview">
		<p align="center" class="short-description"><strong><a href="#sec_vars">Properties</a></strong></p>
		<ul>
		  		  <li><a href="../../Buan/ViewHelper/I18n.html#var$dictionaryFolders">$dictionaryFolders</a></li>
		  		  <li><a href="../../Buan/ViewHelper/I18n.html#var$language">$language</a></li>
		  		  <li><a href="../../Buan/ViewHelper/I18n.html#var$view">$view</a></li>
		  		</ul>
		</td>
		
				<td valign="top" width="20%" class="class-overview">
		<p align="center" class="short-description"><strong><a href="#sec_methods">Methods</a></strong></p>
		<ul>
		  		  <li><a href="../../Buan/ViewHelper/I18n.html#method__construct">__construct</a></li>
		  		  <li><a href="../../Buan/ViewHelper/I18n.html#methodaddDictionaryFolder">addDictionaryFolder</a></li>
		  		  <li><a href="../../Buan/ViewHelper/I18n.html#methodgetLanguage">getLanguage</a></li>
		  		  <li><a href="../../Buan/ViewHelper/I18n.html#methodsetLanguage">setLanguage</a></li>
		  		  <li><a href="../../Buan/ViewHelper/I18n.html#methodtranslateView">translateView</a></li>
		  		</ul>
		</td>
		
		</tr></table>
		<div class="top">[ <a href="#top">Top</a> ]</div>
	</div>
</div>



	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
									| <span class="disabled">Constants Summary</span> | <a href="#sec-consts">Constants Detail</a>
												| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
																			| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
									</div>
		<div class="info-box-body">
			<div class="const-summary">
			<table border="0" cellspacing="0" cellpadding="0" class="var-summary">
							<div class="var-title">
					<tr>
					<td class="var-title"><a href="#constDEFAULT_LANG" title="details" class="const-name-summary">DEFAULT_LANG</a>&nbsp;&nbsp;</td>
					<td class="const-summary-description">The default language code.</td></tr>
				</div>
								</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>

	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Property Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
									| <span class="disabled">Property Summary</span> | <a href="#sec-vars">Properties Detail</a>
												| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
							    		    			    				| <a href="#sec-const-summary">Constants Summary</a> | <a href="#sec-consts">Constants Detail</a>
    			    				</div>
		<div class="info-box-body">
			<div class="var-summary">
			<table border="0" cellspacing="0" cellpadding="0" class="var-summary">
																															<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">array</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$dictionaryFolders" title="details" class="var-name-summary">$dictionaryFolders</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">List of folders that contain dictionary files.</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">string</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$language" title="details" class="var-name-summary">$language</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">The language to use for all translations in the View attached to this  helper.</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">Buan\View</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$view" title="details" class="var-name-summary">$view</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">The View instance to which this helper is attached.</td></tr>
				</div>
										</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
																		| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
							    		    			    				| <a href="#sec-const-summary">Constants Summary</a> | <a href="#sec-consts">Constants Detail</a>
    			    					| <span class="disabled">Method Summary</span> | <a href="#sec-methods">Methods Detail</a>
		</div>
		<div class="info-box-body">
			<div class="method-summary">
				<table border="0" cellspacing="0" cellpadding="0" class="method-summary">
																																																								<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Buan\ViewHelper\I18n</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#__construct" title="details" class="method-name">__construct</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Constructor</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#addDictionaryFolder" title="details" class="method-name">addDictionaryFolder</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Add translation dictionary folder. This folder must contain a file for  each language you want to , ie. &quot;en.php&quot;, &quot;es.php&quot;, etc.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">string</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getLanguage" title="details" class="method-name">getLanguage</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Return the currently set language code.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#setLanguage" title="details" class="method-name">setLanguage</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Set the language to which $this-&gt;view will be translated.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#translateView" title="details" class="method-name">translateView</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Translates all [t:...] strings in $this-&gt;view's buffer to the language  specified by $this-&gt;language. The dictionary for this language will be  searched for in the list of $this-&gt;dictionaryFolders.</td></tr>
				</div>
												</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Properties</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
													| <a href="#sec-var-summary">Property Summary</a> | <span class="disabled">Properties Detail</span>
															| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
																			| <a href="#sec-const-summary">Constants Summary</a> | <a href="#sec-consts">Constants Detail</a>
									</div>
		<div class="info-box-body">
			<a name="var$dictionaryFolders" id="$dictionaryFolders"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>&nbsp;&nbsp;
			<span class="var-name">$dictionaryFolders</span>
			 = <span class="var-default">array()</span>			<span class="smalllinenumber">[line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a29">29</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>List of folders that contain dictionary files.
</strong></p>
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$language" id="$language"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>&nbsp;&nbsp;
			<span class="var-name">$language</span>
						<span class="smalllinenumber">[line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a37">37</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>The language to use for all translations in the View attached to this  helper.
</strong></p>
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$view" id="$view"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Buan\View</span>&nbsp;&nbsp;
			<span class="var-name">$view</span>
						<span class="smalllinenumber">[line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a44">44</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>The View instance to which this helper is attached.
</strong></p>
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
		</div>
	</div>

	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
																		| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
																			| <a href="#sec-const-summary">Constants Summary</a> | <a href="#sec-consts">Constants Detail</a>
														| <a href="#sec-method-summary">Method Summary</a> | <span class="disabled">Methods Detail</span>
					</div>
		<div class="info-box-body">
			<a name='method_detail'></a>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">Constructor __construct</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a52">52</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Buan\ViewHelper\I18n __construct(
Buan\View
$view&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Constructor
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">Buan\View</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$view:&nbsp;</span></td>
				<td>
				<span class="var-description"> The View to which this helper is being attached</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodaddDictionaryFolder" id="addDictionaryFolder"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">addDictionaryFolder</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a79">79</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void addDictionaryFolder(

$src&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Add translation dictionary folder. This folder must contain a file for  each language you want to , ie. &quot;en.php&quot;, &quot;es.php&quot;, etc.
</strong></p>
<span class="description"><p>Each of these files must return an array of source=&gt;translation entries, for  example:  <ol><li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;es.php</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-key">array&nbsp;</span><span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'hello'</span>=&gt;<span class="src-str">'ola'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'goodbye,&nbsp;%s'</span>=&gt;<span class="src-str">'adios,&nbsp;%s'</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$src:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetLanguage" id="getLanguage"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getLanguage</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a93">93</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>string getLanguage(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Return the currently set language code.
</strong></p>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsetLanguage" id="setLanguage"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">setLanguage</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a106">106</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void setLanguage(
string
$code&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Set the language to which $this-&gt;view will be translated.
</strong></p>
<span class="description"><p>$code can be any string you want, but it may be good advice to follow the  ISO standards for language codes.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$code:&nbsp;</span></td>
				<td>
				<span class="var-description"> Language code</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodtranslateView" id="translateView"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">translateView</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a125">125</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void translateView(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Translates all [t:...] strings in $this-&gt;view's buffer to the language  specified by $this-&gt;language. The dictionary for this language will be  searched for in the list of $this-&gt;dictionaryFolders.
</strong></p>
<span class="description"><p>Examples of strings and their conversions:  <ol><li><div class="src-line">&nbsp;<span class="src-sym">[</span><span class="src-id">t</span>:<span class="src-id">Hello</span><span class="src-sym">]&nbsp;</span>...&nbsp;<span class="src-id">Hello</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">[</span><span class="src-id">t</span>:<span class="src-id">Dave</span>:<span class="src-id">Hello</span><span class="src-sym">,&nbsp;</span>%<span class="src-id">s</span><span class="src-sym">]&nbsp;</span>...&nbsp;<span class="src-id">Hello</span><span class="src-sym">,&nbsp;</span><span class="src-id">Dave</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">[</span><span class="src-id">t</span>:<span class="src-id">Foo</span>:<span class="src-id">Bar</span>:<span class="src-id">I</span><span class="src-str">'m&nbsp;%s,&nbsp;and&nbsp;you'</span><span class="src-id">re&nbsp;</span>%<span class="src-id">s</span><span class="src-sym">]&nbsp;</span>...&nbsp;<span class="src-id">I</span><span class="src-str">'m&nbsp;Foo,&nbsp;and&nbsp;you'</span><span class="src-id">re&nbsp;Bar</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">[</span><span class="src-id">t</span>:<span class="src-id">See</span>\:&nbsp;<span class="src-id">www</span>.<span class="src-id">thundermonkey</span>.<span class="src-id">net</span><span class="src-sym">]&nbsp;</span>...&nbsp;<span class="src-id">See</span>:&nbsp;<span class="src-id">www</span>.<span class="src-id">thundermonkey</span>.<span class="src-id">net</span></div></li>
</ol></p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
										| <a href="#sec-const-summary">Constants Summary</a> | <span class="disabled">Constants Detail</span>
																		| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
									</div>
		<div class="info-box-body">
			<a name="constDEFAULT_LANG" id="DEFAULT_LANG"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-name">DEFAULT_LANG</span>
			 = <span class="var-default"> 'en'</span>
			<span class="smalllinenumber">[line <a href="../../__filesource/fsource_Buan_ViewHelper_view-helperBuanViewHelperI18n.php.html#a22">22</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>The default language code.
</strong></p>
	

	<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
		</div>
	</div>

        <div class="credit">
		    <hr class="separator" />
		    Documentation generated on Tue, 04 Aug 2009 19:59:10 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>